/**
 * Created by wxb on 2016/11/4.
 */
'use strict';

angular.module('BlurAdmin')
  .factory('agoraUrl', function (publicFunc) {

    var prefix = '/kt/agora/';
    var url = {
      get_key: {
        url: 'key',
        method: 'GET'
      },
      zhibo_key: {
        url: 'live_key',
        method: 'GET'
      }

    };
    return publicFunc.urlAddPrefix(url, prefix);
  })
  .service('agoraService', function (httpService, agoraUrl) {
    this.getKey = function (queryParams) {
      return httpService.http({}, agoraUrl.get_key, queryParams)
    };
    this.zhiboKey = function (queryParams) {
      return httpService.http({}, agoraUrl.zhibo_key, queryParams)
    }

  });
